home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr50
/
qbreg210.zip
/
QBREG210.DOC
< prev
next >
Wrap
Text File
|
1993-04-15
|
15KB
|
353 lines
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▄███████▄ ▄████████▄ ▄████████▄ ▄█████████▄ ▄████████▄
████▀▀▀████ ████ ████ ███▀ ▀███ ████ ▀▀▀ ████▀ ▀▀▀
███ ███ █████████▀ ███▄ ▄███ ████▄▄▄▄▄ ████ ▄▄▄▄
███ ▄▄ ███ ████▀▀▀███▄ █████████▀ ████▀▀▀▀▀ ████ ▀▀███
████▄▄████▀ ████▄▄▄████ ████ ▀████▄ ████ ▄▄▄ █████▄▄▄███
▀██████▀██ ▀████████▀ ▀██▀ ▀██▀ ▀█████████▀ ▀████████▀
Registration Encoding System
Copyright (C)1993 by Lee Madajczyk
Version 2.10
Released: April 1993
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
===================================================================
A listing of Quantum Software Distribution sites can be found in
the DISTSITE.QS file.
===================================================================
QBReg is a powerful, quick way to create registration codes
from a provided name along with another number embedded into
your QuickBASIC program. QBReg returns a 9 charachter
registration code, and can internally check whether the code
is valid. Validation is performed at the program level.
QBReg v2.10 ═══════════════════════════════════════════════════ i ════
I N D E X
Terms of Use . . . . . . . . . . . . . . . . . . . . . . . . 1
Registration . . . . . . . . . . . . . . . . . . . . . . . . 1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Installation . . . . . . . . . . . . . . . . . . . . . . . . 3
Using Generate . . . . . . . . . . . . . . . . . . . . . . . 4
Using Validate . . . . . . . . . . . . . . . . . . . . . . . 5
Using QUIK-KEY . . . . . . . . . . . . . . . . . . . . . . . 6
Code Summary . . . . . . . . . . . . . . . . . . . . . . . . 7
About Source Code . . . . . . . . . . . . . . . . . . . . . 8
Copyrights . . . . . . . . . . . . . . . . . . . . . . . . . 9
QBReg v2.10 ═══════════════════════════════════════════════════ 1 ════
Registration
Terms of Use: You may not release ANY shareware,
commercial, freeware, or public domain
software without registering QBReg
with the CORRECT author, Lee Madajczyk
of Quantum Software, Lenexa KS.
Cost: The registration cost for QBReg v2.0 is only
$20.00 in U.S. funds per computer for up
to 9 computers. For registration for more
than 10 computers, please refer to the
file REGISTER.FRM for more information.
FOREIGN ORDERS: Please send a check or money
order drawn in US funds, as it is
expensive to cash a foreign check!
Distribution: Please feel free to distribute the contents in
this archive intact. Please also include ALL files
in this archive. You may change archives.
ie: ZIP->ARJ
Shareware Dealers: Please contact me, letting me
know that you are selling this program. After
that has been accomplished, you are free to
distribute this program for any fee under
ten United States dollars, or the equivalent.
Writing only!
Other: The author reserves the right to revoke any and all
registration benefits and/or registration code from
registered users, although this possibility will be
rarely used.
Author: Quantum Software
Lee Madajczyk
8012 Cottonwood
Lenexa, KS 66215-4165
QBReg v2.10 ═══════════════════════════════════════════════════ 2 ════
Overview
QBReg was designed to provide shareware authors who use
QuickBASIC to write their software with a quick and easy
way to implement a registration system into their program.
QBReg offers the following features:
∙ Fast Processing Time
∙ Easy Error Testing
∙ Internal Validation
∙ 9 Charachter Code
∙ Two Letter Additional Identification
∙ Over 100,000 Programs Numbers
QBReg v2.10 ═══════════════════════════════════════════════════ 3 ════
Installation
To install QBReg validation, you must either INCLUDE$ the
QBREG-V.BI file which will automatically declare everything
needed for the internal validation system, or you can manually
declare the files. To manually declare the files, insert the
following statement into your main program along with the
rest of your declarations...
DECLARE SUB Validate (ProgramNumber, Code$, Name$, FrontLet$)
QBReg v2.10 ═══════════════════════════════════════════════════ 4 ════
Using Generate
To use GENERATE, the FUNCTION that actually produces the
code that you send to your users. To call that program, use
the following syntax...
DECLARE FUNCTION Generate$ (ProgramNumber, RegName$, FrontLet%, Letters$)
' ...All your program's code here...
x$ = Generate$(ProgramNumber, RegName$, FrontLet%, Letters$)
ProgramNumber: This is the number that you embed so that
Generate may make a unique code for each program.
That way, if you use QBReg in multiple programs, you
may have the same person (ie, John Olson) register
two different programs and get two different codes.
Now, if Bob Jones has a code for one program, and
tries to enter it for Program #2, then he will find
that the codes are different. Tricky, huh? <Grin>
Remember: ProgramNumber must be greater than 1000
and less than 104,999, but you can use ANY number
in between. You don't have to go in numerical
sequence. I URGE that each program have a number
AT LEAST 100 numbers away from any other number of
a program.
RegName$: This is where you enter the name of the person or
company who is registering. Ie: You get a registration
from The XYZ Billboard Company. Enter The XYZ Billboard
company here. RegName$ is NOT case sensitive. You may
take it however they enter it. QBReg automatically
changes it to it's internal format for processing.
QBReg also trims the spaces from each side of the
RegName$ variable, so these two stings would be the
same...
RegName$ = "The XYZ Billboard Company"
RegName$ = " The XYZ Billboard Company "
FrontLet%: Variable passed to QBReg telling it whether
to put the first two charachters of Letters$ in
front of the code. These two letters are encoded
into the code string, so these are not the same...
QB304589355 304589355
However, if you do not call Validate with the QB
as Letters$, the first will be invalid while the
second is valid.
Letters$: The two letters to put in front of the code.
These are embedded into the code and MUST be there
when Validate is called.
x$: The returned code made by Generate.
QBReg v2.10 ═══════════════════════════════════════════════════ 5 ════
Using Validate
To use VALIDATE, the FUNCTION which is included with your
program to check that the entered code is correct, use the
following syntax...
DECLARE FUNCTION Validate (ProgramNumber, RegName$, Code$, FrontLetters$)
'...and place your code here...
X = Validate(ProgramNumber, RegName$, Code$, FrontLetters$)
ProgramNumber: This is your embedded number. Use a different
one for each program. Make a variable (Ie: ProgramNumber)
with a unique number. This number must be greater than
1000 and less than 104,999. This means you have literally
millions of combinations for names and codes. This MUST
be the same number as the one used in Generate to make
the code.
RegName$: This is where your users enters the their name.
Ie: The XYZ Billboard registers, so here they would
put their company name. RegName$ is NOT case sensitive.
You may take it however they enter it. QBReg automatically
changes it to it's internal format for processing.
QBReg also trims the spaces from each side of the
RegName$ variable, so these two stings would be the
same...
RegName$ = "The XYZ Billboard Company"
RegName$ = " The XYZ Billboard Company "
Code$: This is the code that the user who is attempting to
register the program enters so that you can use
Validate to see that it checks correctly.
FrontLetters$: This is where you enter the first two letters
that should be right before the 9 charachter code.
(Ie: If you had "QB" as the Letters$ variable while
running Generate, then FrontLetters$ should be "QB"
IMPORTANT: IF you FrontLet%, the variable that tells
Generate whether or not to add Letters$ to the front
of the code, equal 0, then MAKE SURE that
FrontLetters$ = CHR$(27). This is a NECESSITY, or else
the program will check that the first two letters of
Code$ = FrontLetters$.
X: X will return a numerical value. This is what the numbers
mean...
1 Correct Code entered for name.
0 Incorrect code for entered name.
-1 Invalid ProgramNumber.
-2 Invalid Name entered.
QBReg v2.10 ═══════════════════════════════════════════════════ 6 ════
Using QUIK-KEY
Quik-Key is the only EXEcutable file included with this
archive. It allows you to create a registration code without
having to load in QuickBASIC. To use, just type QUIK-KEY
and then press the ENTER key. You will then be prompted to
enter the name to register. If you are registering
The XYZ Billboard Company, enter their name accordingly
exactly as they spelled it, but remember that case doesn't
matter. Then you will be prompted to enter the code number
for your program. Enter the four, five, or six digit number
as asked, (Ie: 12345) and press enter. You will then be
prompted for the two-letter front-code. (Ie: AA) If there
is none, just press ENTER. You should then see this screen..
────────────────────────────────────────────────────────────
Registered Name : [The XYZ Billboard Company]
Registration Number : [AA525C43A79]
────────────────────────────────────────────────────────────
If the name is more than 45 charachters, it will be
truncated, but will it will still be required that the
FULL name YOU typed in be there. Now, all you have to
do is drop The XYZ Billboard Company a letter with
their Registration Number (AA525C43A79) in it. Simple!
QBReg v2.10 ═══════════════════════════════════════════════════ 7 ════
Code Summary
This is a breakdown of what I've BSed about for 5 pages <Grin>..
GENERATE
Declaring...
DECLARE FUNCTION Generate$ (ProgramNumber, RegName$, FrontLet%,
Letters$)
Calling....
x$ = Generate$(ProgramNumber, RegName$, FrontLet%, Letters$)
x$ - Returns the Registration Code
VALIDATE
Declaring...
DECLARE FUNCTION Validate (ProgramNumber, RegName$, Code$,
FrontLetters$)
Calling...
X = Validate(ProgramNumber, RegName$, Code$, FrontLetters$)
X - Returns number about code (..Table..)
1 Correct Code entered for name.
0 Incorrect code for entered name.
-1 Invalid ProgramNumber.
-2 Invalid Name entered.
QBReg v2.10 ═══════════════════════════════════════════════════ 8 ════
About Source Code
No source code can be obtained for QBReg. This is for your
protection as well as mine. This way, nobody knows how I
encode that registration stuff. These are the views of
Lee Madajczyk AND Quantum Software. (Especially since
I AM Quantum Software <Grin>)
QBReg v2.10 ═══════════════════════════════════════════════════ 9 ════
Other
Credits:
Charlie Lacz: Beta tester
Lee Lefler, Infinity BBS
Copyrights:
Program / Documentation of QBReg v2.00
Copyright (C)1993 by Lee Madajczyk
Problems?...
Contact me at: Quantum Software
Lee Madajczyk
8012 Cottonwood
Lenexa, KS 66215
Include a Self-addressed stamped envelope
UNLESS you are a registered user or are
including your Registration. Even then, I
will be very careful about answering because
you should not use the program without
registering.